package com.iwhalecloud.bss.kite.cucc.service.attr.handler;

import com.alibaba.fastjson.JSONObject;
import com.iwhalecloud.bss.kite.common.constant.ErrorConsts;
import com.iwhalecloud.bss.kite.common.constant.KeyConsts;
import com.iwhalecloud.bss.kite.cucc.common.constant.LocalKeyConsts;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttr;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttrValue;
import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.AttrData;
import com.iwhalecloud.bss.kite.service.attr.handler.AbstractAttrHandler;
import com.ztesoft.bss.base.util.LocalAttrUtils;
import com.ztesoft.bss.common.util.ContextUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * Description:精品网MTU值处理
 **/
public class MTUAttrHandler extends AbstractAttrHandler {

    @Override
    public void set(KiteAttr attr, KiteInst inst, String value,AttrData data) {
        int intValue =Integer.parseInt(value);
        if(intValue<1500||intValue>9600){
            ErrorConsts.BUSI_COMMON_ERROR.throwOut("MTU值请输入1500-9600之间的数");
        }
        super.set(attr, inst, value,data);
    }
}
